#include "test.h"

Test::Test(QObject *parent) : QThread(parent)
{

}

void Test::run()
{
    m_timer.singleShot(3000,this,&Test::test);
    test();
}

void Test::test()
{
    qInfo() << "testing" << currentThread();
    // 结束
    // 相当于这个线程出错了！
    terminate();
    // Bad things happen from here...
}
